	var xmlHttp;
	
	function recordPlayYes(obj){
		// 创建XMLTttpReuqest对象
		createXHR();
		
		var urlYes = $(obj).attr("tfRecUrl");
		var account = $(obj).attr("account");
		var code = $(obj).attr("code");
		var phone = $(obj).attr("phone");
		var dur = $(obj).attr("dur");
		
		if (xmlHttp) {
			xmlHttp.onreadystatechange = callback;		// 回调函数
			xmlHttp.open("POST","http://127.0.0.1:3366/ShowRecordPlay?account="+account+"&timestamp=" + new Date().valueOf(),true);
			xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
			var content = ""
				+ "{"
					+ "\"RecordPlay\":{"+
						"\"code\":\""+code+"\""+
						",\"phone\":\""+phone+"\""+
						",\"url\":\""+urlYes+"\""+
						",\"dur\":\""+dur + "\""
					+"}"+
				"}"
				
		xmlHttp.send(content);
		
		} else {
			_dialogAlert("请求创建失败！")
		}
	}
	
	
	function createXHR(){
		xmlHttp = false;
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			try {
				xmlHttp = ActiveXobject("Msxml12.XMLHTTP");
			} catch (e) {
				try {
					xmlHttp = ActiveXobject("Microsoft.XMLHTTP");
				} catch (e) {
					xmlHttp = false;
				}
			}
		}
	}
	
	function callback(){
		if (xmlHttp.readyState==4 && xmlHttp.status!=200) {
			
			_dialogAlert("请打开慧营销客户端进行播放录音！");
		}
	}
	

